home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / ODObject.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  1.9 KB  |  109 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _ODOBJECT_
  4. #define _ODOBJECT_
  5.  
  6. #include <somobj.idl>
  7. #include <somcls.idl>
  8.  
  9. #ifndef _ODTYPESM_
  10. #include "ODTypesM.idl"
  11. #endif
  12.  
  13. #ifndef _GEOTYPES_
  14. #include "GeoTypes.idl"
  15. #endif
  16.  
  17. #ifndef _POLYGON_
  18. #include "Polygon.idl"
  19. #endif
  20.  
  21.  
  22. //==============================================================================
  23. // Classes defined in this interface
  24. //==============================================================================
  25.  
  26. interface  ODObject;
  27.  
  28. //==============================================================================
  29. // Classes used by this interface
  30. //==============================================================================
  31.  
  32. interface  ODExtension;
  33.  
  34. //==============================================================================
  35. // ODObject
  36. //==============================================================================
  37.  
  38. interface M_ODObject : SOMClass
  39. {
  40. #ifdef __SOMIDL__
  41.     implementation
  42.     {
  43.           functionprefix = M_ODObject;
  44.  
  45.         somNew : override;
  46.     };
  47. #endif //# __SOMIDL__
  48. };
  49.  
  50. interface ODObject  : SOMObject
  51. {
  52.     void InitObject();
  53.       
  54.     ODBoolean HasExtension(in ODType extensionName);
  55.   
  56.     ODExtension AcquireExtension(in ODType extensionName);
  57.   
  58.     void ReleaseExtension(in ODExtension extension);
  59.   
  60.     ODSize  Purge(in ODSize size);
  61.     
  62.     ODBoolean IsEqualTo(in ODObject object);
  63.     
  64.     void SubClassResponsibility();
  65.       
  66. #ifdef __SOMIDL__
  67.  
  68.   implementation
  69.   {
  70.     majorversion = 1; minorversion = 0;
  71.  
  72.     metaclass = M_ODObject;
  73.     
  74.       functionprefix = ODObject;
  75.  
  76.     passthru C_h =
  77.     ""
  78.     "#include <ODTypes.h>"
  79.     ""
  80.     "";
  81.  
  82.     passthru C_xh =
  83.     ""
  84.     "#include <ODTypes.h>"
  85.     ""
  86.     "";
  87.  
  88.     override:
  89.         somInit,
  90.         somUninit;
  91.     
  92.     releaseorder:
  93.         InitObject,
  94.         HasExtension,
  95.         AcquireExtension,
  96.         ReleaseExtension,
  97.         Purge,
  98.         IsEqualTo,
  99.         SubClassResponsibility;
  100.         
  101.   };
  102.   
  103. #endif //# __SOMIDL__
  104.  
  105. };
  106.  
  107. #endif // _ODOBJECT_
  108.  
  109.